<include file="Public/head"/>
<body class="no-skin">
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal" id="form" method="post" action="{:U('updateLevel')}">

                            <!-- PAGE CONTENT BEGINS -->

                            <input type="hidden" name="uid" value="{$uid}" id="uid"/>
                            
                            <div class="form-group">
                                
                                <div class="col-sm-9">
                                    <select id="level_id" name="level_id" class="col-xs-10 col-sm-5">
                                        <volist name="user_level_list" id="vo">
                                        <option value="{$vo['id']}" <if condition="$vo['id'] eq $level_id">selected</if>>--{$vo.title}--</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
							
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info submit" type="button">
                                    <i class="icon-ok bigger-110"></i>
                                    确定
                                </button>

                                
                            </div>

                            <!-- PAGE CONTENT ENDS -->


                        </form>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".submit").click(function () {
            $("#form").submit();
        });
    });
</script>
<script type="text/javascript">
	var close_flag = "{:I('close')}";
	if(close_flag == 1){
		var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
		parent.layer.close(index); //再执行关闭
		parent.location.reload();
	}
</script>
</body>
</html>
